package com.woniuxy.lab.woniu_lab.service.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 17292
 */
@Data
@ApiModel("实验评论对象")
public class ParentCommentDto {
    /**
     * 评论ID
     */
    @ApiModelProperty(value = "评论ID" ,example = "1")
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id" ,example = "1")
    private Integer userId;

    /**
     * 父评论id(0为一级评论)
     */
    @ApiModelProperty(value = "父评论id(0为一级评论)" ,example = "0")
    private Integer parentId;

    /**
     * 评论内容
     */
    @ApiModelProperty(value = "评论内容" ,example = "蜗牛币牛蜗")
    private String content;

    /**
     * 评论时间
     */
    @ApiModelProperty(value = "上传时间" ,example = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime commentTime;

    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称" ,example = "蜗牛币")
    private String nickName;

    /**
     * 用户头像地址
     */
    @ApiModelProperty(value = "实验封面地址" ,example = "https://tiebapic.baidu.com/forum/" +
            "w%3D580%3B/sign=2b3078e8d5ef76c6d0d2fb23ad2dfffa/" +
            "32fa828ba61ea8d333f2decdd20a304e241f5823.jpg?tbpicau=2023-03-17-05_90a386a2137910d40bacbbbd7606382d")
    private String userPic;

    /**
     * 对该评论的回复集合
     */
    @ApiModelProperty(value = "对该评论的回复集合")
    private List<CommentDto> comments;
}
